wayland: Make window opacity work
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Oct 2014 14:28:23 +0000 (10:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Oct 2014 14:28:23 +0000 (10:28 -0400)
commit4cf6edda55edb57228e9a1b545dd72c90c3d22af
tree07eb4042ccb1df6728ce82c61883946ed4e1ac4b
parentd58c750db5085a6e7ffe3490acc938a0694743d4
wayland: Make window opacity work

Under wayland, the compositor doesn't have a 'overall window alpha'
knob, we just need to add the alpha to the buffers we send.
Client-side alpha, if you want to call it that.

Implement this by reusing the existing alpha support for non-toplevel
widgets. As a side-effect of the implementation, windows with RGBA
visual under X will now also use per-pixel alpha, instead of
overall alpha.
gtk/gtkwidget.c
gtk/gtkwindow.c